import {request} from "../../request";

export function getLotById(id){
    return request({
        url:`/lswms/lot/${id}`,
        method:'get'
    })
}


export function getLotList(data){
    return request({
        url:'/lswms/lot/page',
        method:'put',
        data:data
    })
}

export function putLot(data){
    return request({
        url:'/lswms/lot',
        method:'put',
        data:data
    })
}
export function postLot(data){
    return request({
        url:'/lswms/lot',
        method:'post',
        data:data
    })
}

export function deleteLot(data){
    return request({
        url:`/lswms/lot`,
        method:'delete',
        data:data
    })
}
export function exportLot(data){
    return request({
        url:`/lswms/lot/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function getLotByLotN(data){
    return request({
        url:`/lswms/lot/ByLotN`,
        method:'get',
		params:data
    })
}